import request from '@/utils/request'

// 获取-权限点列表
export const getPer = () => request.get('/sys/permission')

// 新增-权限点
export const addPer = data => request.post('/sys/permission', data)

// 获取-权限点详情
export const editPer = id => request.get(`/sys/permission/${id}`)

// 修改-权限点详情
export const editPers = data => request.put(`/sys/permission/${data.id}`, data)

// 删除-权限点
export const delper = id => request.delete(`/sys/permission/${id}`)
